import { PrismaClient } from "@prisma/client";
import { Random } from 'mockjs'
import { create } from '../help'


export async function article(){
    create(5,async (prisma:PrismaClient)=>{
        await prisma.article.create({
            data:{
                title:Random.ctitle(),
                content:Random.cparagraph(10,50),
                categoryId:2
            }
        })
    })
}